appliance: Fix searching for shared libraries on usr-merged Debian systems
authorHilko Bengen <bengen@debian.org>
Tue, 31 Aug 2021 15:00:10 +0000 (17:00 +0200)
committerHilko Bengen <bengen@debian.org>
Tue, 7 Sep 2021 11:11:19 +0000 (12:11 +0100)
commitdf82fca0beb4dd231d4dad7b117031da41757f9a
treeeffe9aaeae9a4597e2edb1fc26f0c4c21ac7829e
parente96ebad9af108cadb5bdeb1fd5b045d5fb234b84
appliance: Fix searching for shared libraries on usr-merged Debian systems

If /lib is a symlink to usr/lib, paths to shared libraries as
determined by ld.so may differ from dpkg's file lists.

We turn the filename search pattern into a glob expression by
prefixing it with a '*', so the required packages are found again:

$ dpkg -S /lib/x86_64-linux-gnu/libpcre2-8.so.0
dpkg-query: no path found matching pattern /lib/x86_64-linux-gnu/libpcre2-8.so.0
$ dpkg -S */lib/x86_64-linux-gnu/libpcre2-8.so.0
libpcre2-8-0:amd64: /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0

Gbp-Pq: Name 0021-appliance-Fix-searching-for-shared-libraries-on-usr-.patch
appliance/Makefile.am